package roadtripplanner1;

import com.google.appengine.api.datastore.Key;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import java.util.Date;

@PersistenceCapable
public class Waypoints {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

    @Persistent
    private Date date;
    
    @Persistent
    private String user;

    @Persistent
    private String waypoints;

    // constructor
    public Waypoints(String user, String waypoints, Date date) {
        this.user = user;
        this.waypoints = waypoints;
        this.date = date;
    }

    public String getData()
    {
    	return waypoints;
    }
    
    public Date getDate()
    {
    	return date;
    }
    
    public Key getKey() {
        return key;
    }
    
    
}